Socket
Socket
Sign inDemoInstall

@wixc3/typescript

Package Overview
Dependencies
Maintainers
68
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/typescript

API


Version published
Weekly downloads
76
increased by8.57%
Maintainers
68
Weekly downloads
 
Created
Source

npm version @wixc3/typescript on Github

Home > @wixc3/typescript

typescript package

TypeScript utilities

Functions

FunctionDescription
compileCode(code, fakePath)Compiles a code string to typescript AST
findAllNodes(source, predicate)Finds all nodes satisfying the predicate
findNode(source, predicate)Finds the first node (via DFS) satisfying the predicate
findNodeAfterComment(node, comment)Finds all nodes following a comment
getLeadingComments(node)A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well
isSame(a, b, ignore, reportDiff)Compared 2 code snippet (or ASTs)
match(code, pattern)

Finds a node matching the pattern. The pattern is a valid TS statement

It may include:

- //[ignore] to skip some of its structure,

- //[return] to return an inner node instead of the root

Type Aliases

Type AliasDescription
Comment_2

FAQs

Package last updated on 17 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc